package org.raymond.iworks.study.basic.designpattern.proxy.dynamic;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
public class Client {
    public static void main(String[] args) {
        TeacherDao target = new TeacherDao();
        ProxyFactory factory = new ProxyFactory(target);
        ITeacherDao proxy = (ITeacherDao)factory.getProxyInstance();
        proxy.teach();
    }
}
